home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Environments / MacMETH 3.2.4 / MacMETH Docu / InsertRes.DOC < prev    next >
Text File  |  1996-06-20  |  2KB  |  52 lines

  1. Utility "InsertRes"
  2.  
  3.     Purpose
  4.       The tool InsertRes can copy the resources from a resource 
  5.       file into the object file, recently compiled. 
  6.  
  7.     Remark
  8.       Since the dynamic linking loader of MacMETH always opens the 
  9.       resource fork of the loaded program module, this utility 
  10.       makes it possible to access resources according to the 
  11.       default strategy also in object files, regardless wether 
  12.       these are linked into an application or not. This is of 
  13.       particular interest for developers programing modules which 
  14.       access sound or picture resources and which can program this 
  15.       access always using the default strategy. The latter means 
  16.       that no resource file is specified while attempting to access 
  17.       the resource, which is then searched by the resource manager 
  18.       in the currently open resource fork, the resource fork of the 
  19.       current running application, or finally the system file's 
  20.       resource fork.          
  21.  
  22.     Method
  23.       Once the compiler has been called the file err.DAT contains 
  24.       the names of the compiled modules. InsertRes retrieves the 
  25.       name of a program module, i.e. "moduleName", from this file 
  26.       (if several have been compiled, the first compiled is 
  27.       retrieved). Then a file "moduleName.R" is searched, and its 
  28.       entire resource fork is copied into the file 
  29.       "moduleName.OBM". Error messages are displayed if any of 
  30.       these conditions is violated, i.e. either of the two files 
  31.       could not be accessed or the copying process failed for any 
  32.       other reasons (in use, disk full etc.). The utility also
  33.       displays a message if the operation was successful.      
  34.  
  35.     Typical usage
  36.       Call compiler and compile the program module. Execute this utility 
  37.       immediately afterwards.
  38.       
  39.       IMPORTANT NOTE: Both files, i.e. "moduleName.R" as well as 
  40.       "moduleName.OBM" must reside in the same folder, otherwise 
  41.       the utility's operation fails.
  42.  
  43.       This utility forms part of the MacMETH fast Modula-2 language
  44.       system (available via anonymous ftp from Internet host 
  45.       "ftp.ito.umnw.ethz.ch" (current internet address 129.132.80.130).
  46.       For further information you may also wish to consult 
  47.       'http://www.ito.umnw.ethz.ch/sysecol'.
  48.  
  49.       
  50.  af 18/Sep/95
  51.  
  52.